#include <gtest/gtest.h>
#include <proto_server_context.hpp>

TEST(context,set_get)
{
    std::unordered_map<std::string,std::string> init_map = {
        {"1","2"},
        {"2","3"},
        {"hello","world"}
    };
    const server_context a{std::move(init_map)};
    ASSERT_EQ(a.get("1"),"2");
    ASSERT_EQ(a.get("2"),"3");
    ASSERT_EQ(a.get("hello"),"world");
    ASSERT_FALSE(a.get("Not Exisits"));
}